//
// Created by sgyt on 2020/3/9.
// 发送信号函数

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <signal.h>

int main(int argc,char *argv[])
{
    if(argc != 2)
    {
        printf("error\n");
        exit(0);
    }

    pid_t pid = atoi(argv[1]);
    union sigval val;
    val.sival_int = 200;
    sigqueue(pid,SIGINT,val);
    return 0;
}

